package com.alks.entity.data.page;

import lombok.*;

import java.util.List;
import java.util.Map;

@Data
public class PageRecord<t> {

    private Long total;
    private List<t> list;
    private List<?> otherList;
    private Map<String,Object> other;

    public PageRecord() {
    }

    public PageRecord(List<t> list) {
        this.list = list;
    }

    public PageRecord(List<t> list,List<?> otherList) {
        this.list = list;
        this.otherList = otherList;
    }

    public PageRecord(List<t> list,Long total,List<?> otherList) {
        this.list = list;
        this.total = total;
        this.otherList = otherList;
    }

    public PageRecord(List<t> list,Map<String,Object> other) {
        this.list = list;
        this.other = other;
    }

    public PageRecord(List<t> list,Long total,Map<String,Object> other) {
        this.list = list;
        this.total = total;
        this.other = other;
    }

}
